/*
 * @Date: 2022-07-11 14:27:16
 * @LastEditTime: 2023-04-03 14:07:37
 */
import api from '@/api';
import {
  Button,
  Input,
  Result,
  Modal,
  Select,
  message,
  Tree,
  Menu,
  Dropdown,
} from 'ant-design-vue';

import 'ant-design-vue/dist/antd.css';

export function lazyUse(app) {
  app.use(Button);
  app.use(Input);
  app.use(Result);
  app.use(Modal);
  app.use(Select);
  app.use(Tree);
  app.use(Menu);
  app.use(Dropdown);

  // api.expoDetail().then((res) => {
  //   if (res) app.config.globalProperties.$details = res.data;
  // });

  app.config.globalProperties.$message = message;
  app.config.globalProperties.$Modal = Modal;
}
